
  $(document).ready(function(){
   // $(".new_customer").colorbox({width:"50%", inline:true, href:"#add_customer"});
   //		 $(".dates").colorbox({width:"50%", inline:true, href:"#dates"});
    //$('.date-pick').datePicker().val(new Date().asString()).trigger('change');
    $("#table").tablesorter();
  });

  function customers() {
    $('#content').html($('#customer').html());
  }

  function rent() {
    $('#content').html($('#rent').html());
    $('#display-name').focus();
  }

  function retur() {
    $('#content').html($('#return').html());
  }

  function equip() {
    if($('#display-name').val() == '') {
        //alert("Please enter a valid customer ID");
        $('#content').html($('#equipment').html());
    }
    else {
        $.post('rental/customer', $("#display-name").val());
        $('#content').html($('#equipment').html());
    }
  }

  function date() {
    $('#content').html($('#date').html());
  }

  function cart() {
    $('#cart').html($('#dat').html());
    $('#content').html($('#cart').html());
  }

  function report() {
    $('#content').html($('#reports').html());
  }

